import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('sys_role_menu', { schema: 'lvlu', comment: '角色菜单关联表' })
export class SysRoleMenu {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id' })
  id: number;

  @Column('int', { name: 'menu_id', comment: '菜单id' })
  menuId: number;

  @Column('int', { name: 'role_id', comment: '角色id' })
  roleId: number;
}
